package hhb.game.zhualaoer.core.enums;

public enum Rank {
    TWO(2, 2), THREE(3, 3), FOUR(4, 4), FIVE(5, 5), SIX(6, 6),
    SEVEN(7, 7), EIGHT(8, 8), NINE(9, 9), TEN(10, 10),
    JACK(11, 11), QUEEN(12, 12), KING(13, 13), ACE(14, 1);

    private final int value;
    private final int lowValue; // 用于顺子判断时A作为1的情况

    Rank(int value, int lowValue) {
        this.value = value;
        this.lowValue = lowValue;
    }

    public int getValue() {
        return value;
    }

    public int getLowValue() {
        return lowValue;
    }
}
